/*
 * VBOIndexer.h
 *
 *  Created on: 31.10.2012
 *      Author: Martin
 *
 *      Special function for VBO indexing
 *      create new indexed vert, uv and normal vectors
 *      return indices vector
 */

#pragma once
// create indexed VBO and indices vector
// input: vertices, uvs, normals
// output: indexed vert, uv, norm and indices array

void indexVBO(std::vector<glm::vec3> & in_vertices,
		std::vector<glm::vec2> & in_uvs, std::vector<glm::vec3> & in_normals,

		std::vector<unsigned short> & out_indices,
		std::vector<glm::vec3> & out_vertices, std::vector<glm::vec2> & out_uvs,
		std::vector<glm::vec3> & out_normals);
